package com.smart.community.common.common.qo;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author : 子未语
 * @date : 2024/1/13 16:28
 */
@Data
@Validated
public class SysUserQo {
    /**
     * 用户id
     */
    private Integer sysUserId;
    /**
     * 姓名
     */
    @NotEmpty(message = "用户名不能为空")
    private String sysUserName;

    /**
     * 登录名
     */
    @NotEmpty(message = "登录名不能为空")
    private String loginName;

    /**
     * 用户类型
     */
    @NotNull
    @Min(value = 1, message = "数据异常")
    private Integer userTypeId;

    /**
     * 部门ID
     */
    @NotNull
    @Min(value = 1, message = "数据异常")
    private Integer deptTypeId;


    private OtherInformationQo otherInformationQo;
}
